package com.qf.controller;

import com.qf.entity.Result;
import com.qf.pojo.Order;
import com.qf.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@CrossOrigin(origins = "http://localhost:82")
@RestController
@RequestMapping("Order")
public class OrderController {
    @Autowired
    private OrderService orderService;
    @GetMapping("findAll")
    public List<Order> findAll(){
        return orderService.findAll();
    }


}
